<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Expense Tracker</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <div class="container">
      <h1>Expense Tracker</h1>

      <div class="balance">
        <h2>Your Balance</h2>
        <h3 id="balance">₹0</h3>
      </div>

      <div class="summary">
        <div class="income">
          <h4>Income</h4>
          <p id="income">₹0</p>
        </div>
        <div class="expense">
          <h4>Expense</h4>
          <p id="expense">₹0</p>
        </div>
      </div>

      <h3>Add New Transaction</h3>
      <form id="transaction-form">
        <input type="text" id="text" placeholder="Enter description" required />
        <input
          type="number"
          id="amount"
          placeholder="Enter amount (+ for income, - for expense)"
          required
        />
        <button type="submit">Add Transaction</button>
      </form>

      <h3>Transaction History</h3>
      <ul id="transaction-list" class="list"></ul>
    </div>

    <script type="module" src="index.mjs"></script>
  </body>
</html>
